@extends('admin.common.list.list')

@section('content')
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span><i class="icon-table"></i> 客服权限管理
    </div>
    <div class="mws-panel-body no-padding">
        <table class="mws-table">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>分类名称</th>
                    <th>父级ID</th>
                    <th>分类路径</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach($modules as $k=>$v)

                <tr>
                    <td>{{$v['id']}}</td>
                    <td>{{$v['m_name']}}</td>
                    <td>{{$v['m_pid']}}</td>
                    <td>{{$v['m_path']}}</td>
                    <td align="center">
                        <a class="btn {{$v['check']==0?'btn-info':'btn-success'}}" href="/t_admin/c_author/{{$v['id']}}/edit">{{$v['check']==0?'授权':'取消'}}</a>
                    </td>
                </tr>
                @endforeach
            </tbody>
        </table>
    </div>
</div>

@endsection